<?
/*
Galaxy
Author:McFog
*/
defined('IN GALAXY') or exit('McFog');

class view_message extends view_common {
	function __construct($message, $forward='') {
		@extract($this->mkENV());
		$tplpath = defined("_TPLPath_") ? _TPLPath_ : '';
		$langfile = file_exists($tplpath.'messages.lang.php') ? $tplpath.'messages.lang.php' : ROOT.'shell/default/messages.lang.php';	
		include $langfile;
		if($language[$message]) eval("\$message = \"".$language[$message]."\";");

		$this->data = array(
			'message' => $message,
			'forward' => $forward,
			);
		$this->tplname = 'message.htm';
	}
}

?>